﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace AnaViewer
{
    public partial class OpacityPercentForm : Form
    {
        public OpacityPercentForm()
        {
            InitializeComponent();
        }
        private AlphaForm alphaForm = null;
        public AlphaForm AlphaForm
        {
            get { return alphaForm; }
            set
            {
                alphaForm = value;
            }
        }

        private void trackBar_ValueChanged(object sender, EventArgs e)
        {
            label2.Text = string.Format("{0} %", trackBar.Value);
            if (alphaForm != null)
            {
                alphaForm.OpacityPercent = trackBar.Value;
            }
        }
        public int Value
        {
            get { return trackBar.Value; }
            set { trackBar.Value = value; }
        }
    }
}